home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 15 / macformat_15.iso / C de cerca / Codewarrior Lite / MacOS Support / Headers / ANSI Headers / signal.h < prev    next >
Text File  |  1995-12-29  |  1KB  |  57 lines

  1. /* signal.h standard header */
  2. #ifndef _SIGNAL
  3. #define _SIGNAL
  4. #ifndef _YVALS
  5. #include <yvals.h>
  6. #endif
  7.  
  8. #if __MWERKS__
  9. #pragma options align=mac68k
  10.  
  11. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  12. #pragma import on
  13. #endif
  14. #endif
  15.  
  16.         /* type definitions */
  17. typedef int sig_atomic_t;
  18. typedef void _Sigfun(int);
  19.         /* signal codes */
  20. #define SIGABRT    _SIGABRT
  21. #define SIGINT    2
  22. #define SIGILL    4
  23. #define SIGFPE    8
  24. #define SIGSEGV    11
  25. #define SIGTERM    15
  26. #define _NSIG    _SIGMAX    /* one more than last code */
  27.         /* signal return values */
  28. #define SIG_DFL    ((_Sigfun *)0)
  29. #define SIG_ERR    ((_Sigfun *)-1)
  30. #define SIG_IGN    ((_Sigfun *)1)
  31. _EXTERN_C        /* low-level functions */
  32. _Sigfun *signal(int, _Sigfun *);
  33. _END_EXTERN_C
  34. _C_LIB_DECL        /* declarations */
  35. int raise(int);
  36. _END_C_LIB_DECL
  37.  
  38. #if __MWERKS__
  39. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  40. #pragma import reset
  41. #endif
  42.  
  43. #pragma options align=reset
  44. #endif
  45.  
  46. #endif
  47.  
  48. /*
  49.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  50.  * Consult your license regarding permissions and restrictions.
  51.  */
  52.  
  53. /* Change log:
  54.  *94June04 PlumHall baseline
  55.  *94Oct07 Inserted MW changes.
  56.  */
  57.